package com.fast.cron.common.server;

/**
 * @author leo
 */
public enum ResponseResultEnum {
    /**
     * success
     */
    SUCCESS(10000, "success"),
    FAILTURE(10001, "failed"),
    NO_AUTH(10003, "unauthorized"),
    TOKEN_WRONG(10004, "token is not useful."),
    NO_INFO(10005, "no data in database."),
    NO_LOGIN_BODY(10006, "username or password are required."),
    PARAMS_ERROR(10008, "param is error."),
    SYS_ERROR(10010, "system was shutdown.");


    private int code;
    private String message;

    ResponseResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }


    public String getMessage() {
        return message;
    }

}
